const tagMap = {
  1:"字符串",
  2:"数学",
  3:"数组",
  4:"二叉树",
  5:"动态规划",
  6:"前缀和",
}

let allTags = []

for (let tagMapKey in tagMap) {
  allTags.push({v:tagMapKey , name: tagMap[tagMapKey]})
}

export const Tag = {
  getTagById : id => tagMap[id],
  getAllTags : ()=>allTags
}